package com.hudilao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hudilao.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 根据用户名查询员工信息
     * @param id 用户id
     * @return Employee 员工信息
     */
    @Select("SELECT * FROM employee WHERE id = #{id}")
    Employee getEmployeeById(Long id);
}
